package com.github.pig.stock.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.plugins.Page;
import com.github.pig.stock.entity.TblStock;
import com.baomidou.mybatisplus.service.IService;
import com.github.pig.stock.model.dto.StockInDTO;
import com.github.pig.stock.model.dto.StockSearchDTO;

import java.io.File;
import java.io.InputStream;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author J神
 * @since 2018-05-07
 */
public interface ITblStockService extends IService<TblStock> {
    /**
     * 批量录入
     *
     * @return
     */
    JSONObject readStockInExecl(InputStream inputStream) throws Exception;

    /**
     * 列表检索
     *
     * @return
     */
    Page<TblStock> search(StockSearchDTO stockSearchDTO);

    /**
     * 分配订单
     */
    List<Long> distribute(StockInDTO stockInDTO);

    /**
     * 确认收款
     */
    List<Long> gathering(StockInDTO stockInDTO);

    /**
     *
     */


}